package com.example.kt_base.s4

//TODO 75.Kotlin语言的构造函数默认参数

class KtBase75(name:String="Derry"){
    constructor(name: String="李元", age: Int=18):this(name){
        println("2个参数的次构造函数：name:$name,age:$age")
    }
}

fun main() {
    KtBase75() //优先调用主构造函数
    KtBase75("le",20)

}
